﻿using System.Data;
using System.Data.Common;

namespace GrainManage.Data.Provider
{
    public interface IProvider
    {
        DbConnection Connection { get; }

        DbCommand GetCommand(string cmdText, DbConnection connection);

        DbDataAdapter GetAdapter(string selectCmdText);

        DbParameter GetDbParameter(string paraName, object value, ParameterDirection direction = ParameterDirection.Input);

    }
}
